/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.project.entity.project;

import org.hibernate.validator.constraints.Length;

import com.idenger.common.persistence.DataEntity;

/**
 * 项目Entity
 * @author chenlin
 * @version 2018-04-11
 */
public class Project extends DataEntity<Project> {
	
	private static final long serialVersionUID = 1L;
	private String creatorId;		// 创建者ID
	private String projectTypeId;		// 项目类型ID
	private String projectName;			//项目名称
	private String approvalStatus;		// 审批状态
	private String sourceRemarks;		// 数据源备注
	private String deleteFlag;		// 删除标记

	public Project() {
		super();
	}

	public Project(String id){
		super(id);
	}

	@Length(min=0, max=64, message="创建者ID长度必须介于 0 和 64 之间")
	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Length(min=0, max=64, message="项目类型ID长度必须介于 0 和 64 之间")
	public String getProjectTypeId() {
		return projectTypeId;
	}

	public void setProjectTypeId(String projectTypeId) {
		this.projectTypeId = projectTypeId;
	}
	
	@Length(min=0, max=2, message="审批状态长度必须介于 0 和 2 之间")
	public String getApprovalStatus() {
		return approvalStatus;
	}

	public void setApprovalStatus(String approvalStatus) {
		this.approvalStatus = approvalStatus;
	}
	
	@Length(min=0, max=255, message="数据源备注长度必须介于 0 和 255 之间")
	public String getSourceRemarks() {
		return sourceRemarks;
	}

	public void setSourceRemarks(String sourceRemarks) {
		this.sourceRemarks = sourceRemarks;
	}

	@Length(min=0, max=1, message="删除标记长度必须介于 0 和 1 之间")
	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

}